﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Cadastro.aspx.cs" Inherits="AuctionSite.Cadastro" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.8.0.js"></script>  
    <script src="Scripts/maskedinput.js" type="text/javascript"></script>


    <script type="text/javascript">
        $(document).ready(function () {
            $("#MainContent_txtTel").mask("(99) 9999-9999");
            $("#MainContent_txtCel").mask("(99) 9999-9999");
            $("#MainContent_txtCpf").mask("999.999.999.99");

        });
    </script>    
    <fieldset>
        <legend>Novo Usuario</legend>
        <table >
            <tr>
                <td width="50px">
                    <strong>Nome:</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtNome" runat="server" />
                    <asp:RequiredFieldValidator ID="Validator_nome" runat="server" ControlToValidate="txtNome"
                        ErrorMessage="* Obrigatório" ForeColor="Red" />
                </td>
            </tr>
            <tr>
                <td>
                    <strong>Apelido:</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtApelido" runat="server" />
                    <asp:RequiredFieldValidator ID="Valida_Apelido" runat="server" ControlToValidate="txtApelido"
                        ErrorMessage="* Obrigatório" ForeColor="Red" />
                </td>
            </tr>
            <tr>
                <td>
                    <strong>Telefone:</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtTel" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <strong>Celular:</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtCel" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <strong>Endereço:</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtEnd" runat="server" />
                    <asp:RequiredFieldValidator ID="Valida_End" runat="server" ControlToValidate="txtEnd"
                        ErrorMessage="* Obrigatório" ForeColor="Red" />
                </td>
            </tr>
            <tr>
                <td>
                    <strong>CPF:</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtCpf" runat="server" />
                    <asp:RequiredFieldValidator ID="Valida_Cpf" runat="server" ControlToValidate="txtCpf"
                        ErrorMessage="* Obrigatório" ForeColor="Red" />
                </td>
            </tr>
            <tr>
                <td>
                    <strong>E-mail:</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server" />
                    <asp:RequiredFieldValidator ID="Valida_Email" runat="server" ControlToValidate="txtEmail"
                        ErrorMessage="* Obrigatório" ForeColor="Red" />
                </td>
            </tr>
            <tr>
                <td>
                    <strong>Senha</strong>
                </td>
                <td>
                    <asp:TextBox ID="txtSenha2" TextMode="Password" runat="server" />
                    <asp:RequiredFieldValidator ID="Valida_Senha" runat="server" ControlToValidate="txtSenha2"
                        ErrorMessage="* Obrigatório" ForeColor="Red" />
                </td>
            </tr>
            <tr id="trAdministrador" runat="server">
                <td colspan = "3">
                    
                    <asp:RadioButtonList ID="rblTipoUsuario" runat="server" >
                        <asp:ListItem Selected="True" Value="U">Usuário do Sistema</asp:ListItem>
                        <asp:ListItem Value="A">Administrador</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnCadastrar" runat="server" Text="Cadastrar" OnClick="btnCadastrar_Click" />
                </td>
            </tr>            
        </table>
    </fieldset>
</asp:Content>
